export function cookieToJson(cookieStr) {
  if (!cookieStr) {
    return ''
  }
  let cookieArr = cookieStr.split(";")
  let obj = {}
  cookieArr.forEach((i) => {
    let arr = i.split("=")
    obj[arr[0]] = arr[1]
  })
  return obj
}

export default {
  cookieToJson
}
